<template>
  <div>
    <el-dialog title="是否需要配置【费率因子】" :visible.sync="dialogVisible" size="small" :close-on-click-modal="false"
               :close-on-press-escape="false" :before-close="off">

      <div align="center">
          <el-radio class="radio" v-model="radio" label="1">否</el-radio>
          <el-radio class="radio" v-model="radio" label="2">是</el-radio>
      </div>

      <span slot="footer" class="dialog-footer">
         <el-button @click="off">取 消</el-button>
         <el-button type="warning" @click="choose">确 定</el-button>
      </span>

    </el-dialog>
  </div>
</template>

<script>

export default {
  data() {
    return {
      dialogVisible: true,
      radio: '1',
    }
  },
  methods: {
    choose() {
      this.off();
      if (this.radio === '1') {
        this.$parent.showAddDialog = true;
      } else {
        this.$parent.showAdd2Dialog = true;
      }
    },
    off() {
      this.$parent.showIsConfigPropsDialog = false;
    },
  }
}
</script>
